import Vue from "vue";
import Router from "vue-router";

import Home from '@/components/home.vue'
import Player from '@/components/video/BPlayer'
import RtmpPlayer from '@/components/video/BRtmpPlayer'
import HlsPlayer from '@/components/video/BHlsPlayer'
import RtcPlayer from '@/components/video/BRtcPlayer'

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: "/",
      component: Home,
      name: "Home",
      meta: {
        showTop: true,
        isLogin: false,
        title: "Bilibili",
      },
    },
    {
      path: "/bplayer/:id",
      component: Player,
      name: "Player",
      meta: {
        showTop: true,
        isLogin: false,
        title: "Bilibili",
      },
    },
    {
      path: "/bhlsplayer/:id",
      component: HlsPlayer,
      name: "HlsPlayer",
      meta: {
        showTop: true,
        isLogin: false,
        title: "Bilibili",
      },
    },
    {
      path: "/brtcplayer/:id",
      component: RtcPlayer,
      name: "RtcPlayer",
      meta: {
        showTop: true,
        isLogin: false,
        title: "Bilibili",
      },
    },
    {
      path: "/brtmpplayer/:id",
      component: RtmpPlayer,
      name: "RtmpPlayer",
      meta: {
        showTop: true,
        isLogin: false,
        title: "Bilibili",
      },
    },
  ]
});
